From: kfraser@localhost.localdomain Date: Fri, 9 Feb 2007 17:38:33 +0000 (+0000) Subject: Print all by default in debug builds. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15338 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=71444c520f32fa633e92a3311bb4fbedc8a9518f;p=xen.git Print all by default in debug builds. --- diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index cfc7e98a17..03045963c9 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -72,10 +72,17 @@ static DEFINE_SPINLOCK(console_lock); * Note, in the above algorithm, to disable rate limiting simply make * the lower threshold equal to the upper. */ +#ifdef NDEBUG #define XENLOG_UPPER_THRESHOLD 2 /* Do not print INFO and DEBUG */ #define XENLOG_LOWER_THRESHOLD 2 /* Always print ERR and WARNING */ #define XENLOG_GUEST_UPPER_THRESHOLD 2 /* Do not print INFO and DEBUG */ #define XENLOG_GUEST_LOWER_THRESHOLD 0 /* Rate-limit ERR and WARNING */ +#else +#define XENLOG_UPPER_THRESHOLD 4 /* Do not discard anything */ +#define XENLOG_LOWER_THRESHOLD 4 /* Print everything */ +#define XENLOG_GUEST_UPPER_THRESHOLD 4 /* Do not discard anything */ +#define XENLOG_GUEST_LOWER_THRESHOLD 4 /* Print everything */ +#endif /* * The XENLOG_DEFAULT is the default given to printks that * do not have any print level associated with them.